package com.dtwave.eureka.codegen;

import com.dtwave.eureka.util.CodeGenerationUtil;
import org.springframework.stereotype.Component;

/**
 * @author andyFan
 * @since 2018年12月16日
 * <p>
 * 代码生成器
 */
@Component
public class CodeGenerate {
    private static String url = "jdbc:mysql://127.0.0.1:3306/family?autoReconnect=true&autoReconnectForPools=true&useUnicode=true&characterEncoding=utf8&allowMultiQueries=true";
    private static String username = "root";
    private static String password = "root";
    static String[] tables = {"user"};

    public static void main(String[] args) {
        new CodeGenerationUtil("eureka-consumer", url, username, password, tables).execute();
    }
}
